﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Rapid
{
    class Comment
    {
        static RapidDataDataContext db = new RapidDataDataContext();

        //public static IEnumerable<string> GetComments()
        //{
        //    return db.Observations.Where(ob => ob.TypeDrug != 2).Select(ob => ob.Comments);
        //}
        //public static string GetComments(bool isMonitoring)
        public static string GetComments()
        {
            var Observations = db.Observations.Where(ob => ob.TypeDrug != 2);
            string comments = string.Empty;
            foreach(var ob in Observations)
            {
                comments += ob.Comments;
                comments += Environment.NewLine;
            }
            return comments;
        }
    }
}
